﻿using FreeSql.DataAnnotations;
using ManaSky.DBCore.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Xml.Linq;

namespace ManaSky.Entity
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    [Description("用户信息表"), Table(Name = "sys_user")]
    public class sys_user : VersionEntity
    {
        /// <summary>
        /// 登陆名称
        /// </summary>
        [Column(Name= "login_name")]
        public string LoginName { get; set; } = string.Empty;
        /// <summary>
        /// 密码
        /// </summary>
        [Column(Name = "password")]
        public string Password { get; set; } = string.Empty;
        /// <summary>
        /// 姓名
        /// </summary>
        [Column(Name = "name")]
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 邮箱
        /// </summary>
        [Column(Name = "email")]
        public string Email { get; set; } = string.Empty;
        /// <summary>
        /// 电话
        /// </summary>
        [Column(Name = "phone")]
        public string Phone { get; set; } = string.Empty;
        /// <summary>
        /// 头像
        /// </summary>
        [Column(Name = "avatar")]
        public string Avatar { get; set; } = string.Empty;
        /// <summary>
        /// 备注
        /// </summary>
        [Column(Name = "remark")]
        public string Remark { get; set; } = string.Empty;
        /// <summary>
        /// 部门
        /// </summary>
        [Column(Name = "dept")]
        public string Dept { get; set; } = string.Empty;
        /// <summary>
        /// 公司
        /// </summary>
        [Column(Name = "company")]
        public string Company { get; set; } = string.Empty;
        /// <summary>
        /// 是否为管理人员 1 是 0 否
        /// </summary>
        [Column(Name = "super")]
        public string Super { get; set; } = string.Empty;
        /// <summary>
        /// 最近一次的登录时间
        /// </summary>
        [Column(Name = "last_login_time")]
        public DateTime? LastLoginTime { get; set; } = null;
        /// <summary>
        /// 是否禁用 1 禁用 0未禁用
        /// </summary>
        [Column(Name = "is_enable")]
        public int IsEnable { get; set; } = 0;
    }
}
